package com.blacktech.dbu.core.dict;

/**
 * 约束类型枚举
 *
 * @author yanyunsong
 */
public enum ConstraintType {
    PRIMARY_KEY("PRIMARY", "主键约束"),
    FOREIGN_KEY("FOREIGN", "外键约束"),
    UNIQUE("UNIQUE", "唯一约束"),
    CHECK("CHECK", "检查约束"),
    NOT_NULL("NOTNULL", "非空约束");

    private final String code;
    private final String description;

    ConstraintType(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}